﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAOMall;
using DTOMall;
using System.Data;


namespace BLLMall
{
    class BooksBLL
    {
        BooksDTO bs = new BooksDTO();
        BooksDTO bControl = new BooksDTO();
        public bool Insert(Books b)
        {
            if (bControl.insert(b))
            {
                return true;
            }
            return false;
        }
        public bool Update(Shops b)
        {
            if (bControl.update(b))
            {
                return true;
            }
            return false;
        }
        public bool Delete(int id)
        {
            if (bControl.delete(id))
            {
                return true;
            }
            return false;
        }
        public DataTable getAll()
        {
            return bControl.getAll();
        }
        public Books getByID(int id)
        {
            return (Books)bControl.getByID(id);
        }
    }
}
